package cn.edkuir.cart.service;

import cn.edkuir.cart.vo.CartItem;
import cn.edkuir.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    void addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    CartVo getCart() throws ExecutionException, InterruptedException;

    void clearCart(String cartKey);

    void check(Long skuId, Integer check);

    void count(Long skuId, Integer num);

    void delete(Long skuId);

    List<CartItem> getCurrentUserCartItems();
}
